{include file="header.html"}
<ul class="nav nav-tabs">
	<li><a>库存订单</a></li>
	<li class="active"><a href="{$appadmin}?m=kcorder_stat" >按日统计</a></li>
	<li ><a href="{$appadmin}?m=kcorder_stat&a=month" >按月统计</a></li>
</ul>
<form class="search-form" method="get" action="{$appadmin}">
	<input type="hidden" name="m" value="kcorder_stat" />
	日期：<input type="text" name="day" value="{$day}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
	<button class="btn" type="submit">选择</button>
</form>
<div>
	<table class="table">
		<tr>
			<td>时间</td>
			<td>产品</td>
			<td>销量</td>
			<td>销售额</td>
		</tr>
		{foreach item=c from=$data}
		<tr>
			<td>{$day}</td>
			<td>{$c.title}</td>
			<td>{$c.buy_num}</td>
			<td>{$c.price}</td>
		</tr>
		{/foreach}
	</table>
</div>
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script>
{include file="footer.html"}
